package facade;

public class TheaterLights {

    private String name;
    private int dimming;

    public TheaterLights() {
        this.name = "Theater Ceiling" + " Lights";
        this.dimming = 50;
    }

    public String getName() {
        return name;
    }

    public void on() {
        System.out.println(this.name + " on");
    }

    public void off() {
        System.out.println(this.name + " off");
    }

    public void dim(int dimming) {
        if (dimming >= 0 && dimming <= 100) {
            this.dimming = dimming;
        }
        System.out.println(this.name + " dimming to " + this.dimming + "%");
    }

}
